功能

<template>

? ? <div id="addindex">

? ? ? ? <div class="main_add? simple">

? ? ? ? ? ? <el-row type="flex" class="row-bg main_head" justify="space-between">

? ? ? ? ? ? ? ? <el-col :span="6"><div class="addcolor" style="text-align:left">基本信息{{nodename}}</div></el-col>

? ? ? ? ? ? </el-row>

? ? ? ? ? ? <el-row? :gutter="10" class="formWrap">

? ? ? ? ? ? ? ? <el-col class="form-item" :span="10">

? ? ? ? ? ? ? ? ? ? <div class="inputLabel" style="width:50px">節(jié)點(diǎn)編碼</div>

? ? ? ? ? ? ? ? ? ? <el-input? :maxlength="20"></el-input>

? ? ? ? ? ? ? ? </el-col>

? ? ? ? ? ? ? ? <el-col class="form-item" :span="10">

? ? ? ? ? ? ? ? ? ? <div class="inputLabel">節(jié)點(diǎn)名稱</div>

? ? ? ? ? ? ? ? ? ? <el-input v-model="nodename" :maxlength="20"></el-input>

? ? ? ? ? ? ? ? </el-col>

? ? ? ? ? ? </el-row>

? ? ? ? ? ? <el-row :gutter="10" class="formWrap">

? ? ? ? ? ? ? ? <el-col class="form-item" :span="10">

? ? ? ? ? ? ? ? ? ? <div class="inputLabel">上級節(jié)點(diǎn)</div>

? ? ? ? ? ? ? ? ? ? <el-input? :maxlength="20"></el-input>

? ? ? ? ? ? ? ? </el-col>

? ? ? ? ? ? ? ? <el-col class="form-item" :span="10" style='text-align:left;margin-top:3px;'>

? ? ? ? ? ? ? ? ? ? <div class="inputLabel" style='float:left;margin-right:5px'>節(jié)點(diǎn)狀態(tài)</div>

? ? ? ? ? ? ? ? ? ? ? <div style='display:flex;margin-top:20px' >

? ? ? ? ? ? ? ? ? ? ? ? ? <el-radio class="radio" v-model="radio" label="1"><span style='font-size:13px'>啟用</span></el-radio>

? ? ? ? ? ? ? ? ? ? ? ? ? <el-radio class="radio" v-model="radio" label="2"><span style='font-size:13px'>禁用</span></el-radio>

? ? ? ? ? ? ? ? ? ? ? </div>

? ? ? ? ? ? </el-col>

? ? ? ? ? ? </el-row>

? ? ? ? ? ? <el-row :gutter="10" class="formWrap">

? ? ? ? ? ? ? ? <el-col class="form-item" :span="10">

? ? ? ? ? ? ? ? ? ? <div class="inputLabel">數(shù)據(jù)來源</div>

? ? ? ? ? ? ? ? ? ? <el-input? :maxlength="20"></el-input>

? ? ? ? ? ? ? ? </el-col>

? ? ? ? ? ? ? ? <el-col class="form-item" :span="10">

? ? ? ? ? ? ? ? ? ? <div class="inputLabel">人事系統(tǒng)組織</div>

? ? ? ? ? ? ? ? ? ? <el-input? :maxlength="20" icon="search"></el-input>

? ? ? ? ? ? ? ? </el-col>

? ? ? ? ? ? </el-row>

? ? ? ? ? ? <el-row :gutter="10" class="formWrap">

? ? ? ? ? ? ? ? <el-col class="form-item" :span="10">

? ? ? ? ? ? ? ? ? ? <div class="inputLabel">節(jié)點(diǎn)類型</div>

? ? ? ? ? ? ? ? ? ? <el-select? placeholder="全部">

? ? ? ? ? ? ? ? ? ? ? ? <el-option></el-option>

? ? ? ? ? ? ? ? ? ? </el-select>

? ? ? ? ? ? ? ? </el-col>

? ? ? ? ? ? </el-row>

? ? ? ? ? ? <el-row :gutter="10" class="formWrap">

? ? ? ? ? ? ? ? <el-col class="form-item" :span="24">

? ? ? ? ? ? ? ? ? ? <div class="inputLabel">節(jié)點(diǎn)路徑</div>

? ? ? ? ? ? ? ? ? ? <el-input? length="120"></el-input>

? ? ? ? ? ? ? ? </el-col>

? ? ? ? ? ? </el-row>

? ? ? ? ? ? <el-row type="flex" class="row-bg main_head">

? ? ? ? ? ? ? ? <el-col :span="6"><div class="addcolor" style="text-align:left;">財(cái)務(wù)段信息</div></el-col>

? ? ? ? ? ? ? ? <el-col style="text-align:right">

? ? ? ? ? ? ? ? ? ? <span class="toolButtonItem">

? ? ? ? ? ? ? ? ? ? ? <img src="@/icons/icon_edit01.png" style="margin-bottom:-3px">&nbsp;編輯

? ? ? ? ? ? ? ? ? ? </span>

? ? ? ? ? ? ? ? ? ? <span class="toolButtonItem" @click='addList' >

? ? ? ? ? ? ? ? ? ? ? ? <img src="@/icons/icon_add.png" style="margin-bottom:-3px">&nbsp;新增

? ? ? ? ? ? ? ? ? ? </span>

? ? ? ? ? ? ? ? ? ? <span class="toolButtonItem" @click='deleteList' >

? ? ? ? ? ? ? ? ? ? ? ? <img src="@/icons/icon_delete.png" style="margin-bottom:-3px">&nbsp;刪除

? ? ? ? ? ? ? ? ? ? </span>? ?

? ? ? ? ? ? ? ? </el-col>

? ? ? ? ? ? </el-row>

? ? ? ? ? ? <el-row type="flex" class="row-bg">

? ? ? ? ? ? ? ? <template>

? ? ? ? ? ? ? ? ? ? <el-table

? ? ? ? ? ? ? ? ? ? ? ? :data="tabledata"

? ? ? ? ? ? ? ? ? ? ? ? @select="selectItem"

? ? ? ? ? ? ? ? ? ? ? ? border

? ? ? ? ? ? ? ? ? ? ? ? style="width: 100%">

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? type="selection"

? ? ? ? ? ? ? ? ? ? ? ? width="55">

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? type="index"

? ? ? ? ? ? ? ? ? ? ? ? label="序號"

? ? ? ? ? ? ? ? ? ? ? ? width="100">

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? label="賬套"

? ? ? ? ? ? ? ? ? ? ? ? >

? ? ? ? ? ? ? ? ? ? ? ? <template>

? ? ? ? ? ? ? ? ? ? ? ? ? ? <el-select>

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <el-option></el-option>

? ? ? ? ? ? ? ? ? ? ? ? ? ? </el-select>

? ? ? ? ? ? ? ? ? ? ? ? </template>

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? label="公司段"

? ? ? ? ? ? ? ? ? ? ? ? >

? ? ? ? ? ? ? ? ? ? ? ? <template >

? ? ? ? ? ? ? ? ? ? ? ? ? ? <el-input? icon="search"></el-input>

? ? ? ? ? ? ? ? ? ? ? ? </template>

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? label="成本中心">

? ? ? ? ? ? ? ? ? ? ? ? <template >

? ? ? ? ? ? ? ? ? ? ? ? ? ? <el-input icon="search"></el-input>

? ? ? ? ? ? ? ? ? ? ? ? </template>

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? label="業(yè)務(wù)段"

? ? ? ? ? ? ? ? ? ? ? ? >

? ? ? ? ? ? ? ? ? ? ? ? <template >

? ? ? ? ? ? ? ? ? ? ? ? ? ? <el-input icon="search"></el-input>

? ? ? ? ? ? ? ? ? ? ? ? </template>

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? label="產(chǎn)品段"

? ? ? ? ? ? ? ? ? ? ? >

? ? ? ? ? ? ? ? ? ? ? ? <template>

? ? ? ? ? ? ? ? ? ? ? ? ? ? <el-input icon="search"></el-input>

? ? ? ? ? ? ? ? ? ? ? ? </template>

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? </el-table>

? ? ? ? ? ? ? ? </template>

? ? ? ? ? ? </el-row>

? ? ? ? ? ? <el-row type="flex" class="row-bg main_head">

? ? ? ? ? ? ? ? <el-col :span="6"><div class="addcolor" style="text-align:left">用戶崗位信息</div></el-col>

? ? ? ? ? ? ? ? <el-col style="text-align:right">

? ? ? ? ? ? ? ? ? ? <span class="toolButtonItem" >

? ? ? ? ? ? ? ? ? ? ? ? <img src="@/icons/icon_add.png" style="margin-bottom:-3px">&nbsp;新增崗位

? ? ? ? ? ? ? ? ? ? </span>

? ? ? ? ? ? ? ? ? ? <span class="toolButtonItem">

? ? ? ? ? ? ? ? ? ? ? <img src="@/icons/icon_edit01.png" style="margin-bottom:-3px">&nbsp;編輯

? ? ? ? ? ? ? ? ? ? </span>

? ? ? ? ? ? ? ? ? ? <span class="toolButtonItem" @click='addpost' >

? ? ? ? ? ? ? ? ? ? ? ? <img src="@/icons/icon_add.png" style="margin-bottom:-3px">&nbsp;新增

? ? ? ? ? ? ? ? ? ? </span>

? ? ? ? ? ? ? ? ? ? <span class="toolButtonItem" >

? ? ? ? ? ? ? ? ? ? ? ? <img src="@/icons/icon_delete.png" style="margin-bottom:-3px">&nbsp;刪除

? ? ? ? ? ? ? ? ? ? </span>? ?

? ? ? ? ? ? ? ? </el-col>

? ? ? ? ? ? </el-row>

? ? ? ? ? ? <el-row type="flex" class="row-bg">

? ? ? ? ? ? ? ? <template>

? ? ? ? ? ? ? ? ? ? <el-table

? ? ? ? ? ? ? ? ? ? ? ? :data="tableData"

? ? ? ? ? ? ? ? ? ? ? ? border

? ? ? ? ? ? ? ? ? ? ? ? style="width: 100%">

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? type="index"

? ? ? ? ? ? ? ? ? ? ? ? label="序號"

? ? ? ? ? ? ? ? ? ? ? ? width="100">

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? prop="post"

? ? ? ? ? ? ? ? ? ? ? ? label="崗位"

? ? ? ? ? ? ? ? ? ? ? ? width=250

? ? ? ? ? ? ? ? ? ? ? ? align="left"

? ? ? ? ? ? ? ? ? ? ? ? >

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? ? ? <el-table-column

? ? ? ? ? ? ? ? ? ? ? ? prop="nameorcode"

? ? ? ? ? ? ? ? ? ? ? ? align="left"

? ? ? ? ? ? ? ? ? ? ? ? label="員工編碼/員工名稱"

? ? ? ? ? ? ? ? ? ? ? ? >

? ? ? ? ? ? ? ? ? ? ? ? </el-table-column>

? ? ? ? ? ? ? ? ? ? </el-table>

? ? ? ? ? ? ? ? </template>

? ? ? ? ? ? </el-row>? ? ? ? ? ? ? ?

? ? ? ? </div>

? ? ? ? <el-dialog

? ? ? ? ? ? title="編輯崗位人員"

? ? ? ? ? ? :visible.sync="dialogVisible_post"

? ? ? ? ? ? size="full"

? ? ? ? ? ? :showClose="false"

? ? ? ? ? ? :modal="false"

? ? ? ? ? ? :closeOnClickModal="false"

? ? ? ? >

? ? ? ? ? ? <AddPost></AddPost>

? ? ? ? ? ? <span slot="footer" class="dialog-footer">

? ? ? ? ? ? ? ? <el-button @click="dialogVisible_post = false" style="padding:10px 38px;margin-right:">關(guān)閉</el-button>

? ? ? ? ? ? ? ? <el-button type="primary" @click="dialogVisible_post = false">保存并關(guān)閉</el-button>

? ? ? ? ? ? </span>

? ? ? ? </el-dialog>

? ? </div>

</template>

<script>

? ? import AddPost from "./addpost";

? ? export default{

? ? ? ? name:"",

? ? ? ? data(){

? ? ? ? ? ? return{

? ? ? ? ? ? ? ? radio:"",

? ? ? ? ? ? ? ? currentdata:[],

? ? ? ? ? ? ? ? nodename:"",

? ? ? ? ? ? ? ? dialogVisible_post:false,

? ? ? ? ? ? ? ? tableData:[

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? post:"部門長",

? ? ? ? ? ? ? ? ? ? ? ? nameorcode:'18372 / 趙昭'

? ? ? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? post:"部門預(yù)算員",

? ? ? ? ? ? ? ? ? ? ? ? nameorcode:'19376 / 王婉'

? ? ? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? post:"普通員工",

? ? ? ? ? ? ? ? ? ? ? ? nameorcode:'12345 / 張申闷游;12353 / 李麗;12385 / 程誠(兼崗)凤跑;'

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ],

? ? ? ? ? ? ? ? tabledata:[

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? post:"部門長",

? ? ? ? ? ? ? ? ? ? ? ? nameorcode:'18372 / 趙昭'

? ? ? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? post:"部門預(yù)算員",

? ? ? ? ? ? ? ? ? ? ? ? nameorcode:'19376 / 王婉'

? ? ? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? post:"普通員工",

? ? ? ? ? ? ? ? ? ? ? ? nameorcode:'12345 / 張申佩厚;12353 / 李麗骤素;12385 / 程誠(兼崗)侠鳄;'

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ]? ?

? ? ? ? ? ? }

? ? ? ? },

? ? ? ? methods: {

? ? ? ? ? ? selectItem(val){

? ? ? ? ? ? ? ? this.currentdata=val;

? ? ? ? ? ? },

? ? ? ? ? ? addList(){

? ? ? ? ? ? ? ? var obj = JSON.parse(JSON.stringify(this.tabledata[0]));

? ? ? ? ? ? ? ? for(var i in obj){

? ? ? ? ? ? ? ? ? ? if(typeof obj[i] =="string"||typeof obj[i] =="number"){

? ? ? ? ? ? ? ? ? ? ? ? obj[i]=""

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? };

? ? ? ? ? ? ? ? this.tabledata.push(obj);

? ? ? ? ? ? },

? ? ? ? ? ? deleteList(){

? ? ? ? ? ? ? ? this.tabledata.map((item, index) => {

? ? ? ? ? ? ? ? this.currentdata.map((otem, ondex) => {

? ? ? ? ? ? ? ? ? ? if (otem == item) {

? ? ? ? ? ? ? ? ? ? ? ? this.tabledata.splice(index, 1)

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? })

? ? ? ? ? ? })

? ? ? ? ? ? },

? ? ? ? ? ? addpost(){

? ? ? ? ? ? ? ? this.dialogVisible_post = true;

? ? ? ? ? ? }

? ? ? ? },

? ? ? ? components:{

? ? ? ? ? ? AddPost

? ? ? ? }

? ? }

</script>

<style lang="css">

? ? .main_add{

? ? ? ? border: 1px solid rgb(217, 206, 191);

? ? ? ? padding: 20px;

? ? ? ? border-radius: 10px;

? ? }

</style>

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末乎莉,一起剝皮案震驚了整個(gè)濱河市送讲,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌惋啃,老刑警劉巖哼鬓,帶你破解...
    沈念sama閱讀 211,561評論 6 492
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異边灭,居然都是意外死亡异希,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,218評論 3 385
  • 文/潘曉璐 我一進(jìn)店門绒瘦,熙熙樓的掌柜王于貴愁眉苦臉地迎上來称簿,“玉大人,你說我怎么就攤上這事惰帽『┙担” “怎么了?”我有些...
    開封第一講書人閱讀 157,162評論 0 348
  • 文/不壞的土叔 我叫張陵该酗,是天一觀的道長授药。 經(jīng)常有香客問我士嚎,道長,這世上最難降的妖魔是什么悔叽? 我笑而不...
    開封第一講書人閱讀 56,470評論 1 283
  • 正文 為了忘掉前任莱衩,我火速辦了婚禮,結(jié)果婚禮上娇澎,老公的妹妹穿的比我還像新娘笨蚁。我一直安慰自己,他們只是感情好九火,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,550評論 6 385
  • 文/花漫 我一把揭開白布赚窃。 她就那樣靜靜地躺著,像睡著了一般岔激。 火紅的嫁衣襯著肌膚如雪勒极。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,806評論 1 290
  • 那天虑鼎,我揣著相機(jī)與錄音辱匿,去河邊找鬼。 笑死炫彩,一個(gè)胖子當(dāng)著我的面吹牛匾七,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播江兢,決...
    沈念sama閱讀 38,951評論 3 407
  • 文/蒼蘭香墨 我猛地睜開眼昨忆,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了杉允?” 一聲冷哼從身側(cè)響起邑贴,我...
    開封第一講書人閱讀 37,712評論 0 266
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎叔磷,沒想到半個(gè)月后拢驾,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 44,166評論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡改基,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,510評論 2 327
  • 正文 我和宋清朗相戀三年繁疤,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片秕狰。...
    茶點(diǎn)故事閱讀 38,643評論 1 340
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡稠腊,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出鸣哀,到底是詐尸還是另有隱情架忌,我是刑警寧澤,帶...
    沈念sama閱讀 34,306評論 4 330
  • 正文 年R本政府宣布诺舔,位于F島的核電站鳖昌,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏低飒。R本人自食惡果不足惜许昨,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,930評論 3 313
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望褥赊。 院中可真熱鬧糕档,春花似錦、人聲如沸拌喉。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,745評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽尿背。三九已至端仰,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間田藐,已是汗流浹背荔烧。 一陣腳步聲響...
    開封第一講書人閱讀 31,983評論 1 266
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留汽久,地道東北人鹤竭。 一個(gè)月前我還...
    沈念sama閱讀 46,351評論 2 360
  • 正文 我出身青樓,卻偏偏與公主長得像景醇,于是被迫代替她去往敵國和親臀稚。 傳聞我的和親對象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,509評論 2 348

推薦閱讀更多精彩內(nèi)容