功能

<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">上級(jí)節(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ù)來(lái)源</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="序號(hào)"

? ? ? ? ? ? ? ? ? ? ? ? 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="序號(hào)"

? ? ? ? ? ? ? ? ? ? ? ? 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:"部門長(zhǎng)",

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

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

? ? ? ? ? ? ? ? ? ? {

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

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

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

? ? ? ? ? ? ? ? ? ? {

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

? ? ? ? ? ? ? ? ? ? ? ? nameorcode:'12345 / 張申;12353 / 李麗;12385 / 程誠(chéng)(兼崗);'

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ],

? ? ? ? ? ? ? ? tabledata:[

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? post:"部門長(zhǎng)",

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

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

? ? ? ? ? ? ? ? ? ? {

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

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

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

? ? ? ? ? ? ? ? ? ? {

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

? ? ? ? ? ? ? ? ? ? ? ? nameorcode:'12345 / 張申;12353 / 李麗;12385 / 程誠(chéng)(兼崗);'

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ]? ?

? ? ? ? ? ? }

? ? ? ? },

? ? ? ? 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)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容