Commit 8abc19d0 authored by 周远喜's avatar 周远喜

人员组件显示

parent ed9a51b5
...@@ -85,8 +85,9 @@ ...@@ -85,8 +85,9 @@
<div v-if="column.type=='user'"> <div v-if="column.type=='user'">
<User :value="item[column.key]"/> <User :value="item[column.key]"/>
</div> </div>
<div v-if="column.type=='users'&&item[column.key]"> <div v-if="column.type=='users'&&item[column.key]&&item[column.key].length>0">
<User v-for="li in JSON.parse(item[column.key])" :value="li" :key="li" class="ml10"/> 2{{item[column.key]}}2
<User v-for="li in item[column.key]" :value="li" :key="li" class="ml10"/>
</div> </div>
<state <state
v-if="column.code" v-if="column.code"
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
endDate: null, endDate: null,
type: 0, type: 0,
attachment: "", attachment: "",
executor: "", executor: [],
}, },
parmsName: "app=material&eid=1&name=ProjectPlan", parmsName: "app=material&eid=1&name=ProjectPlan",
rules: { rules: {
......
...@@ -139,7 +139,6 @@ export default { ...@@ -139,7 +139,6 @@ export default {
load(v) { load(v) {
Api.get({ id: v }).then((r) => { Api.get({ id: v }).then((r) => {
this.entity = r.result; this.entity = r.result;
this.entity.executor=JSON.parse(this.entity.executor);
}); });
}, },
handleSubmit() { handleSubmit() {
......
...@@ -268,10 +268,7 @@ export default { ...@@ -268,10 +268,7 @@ export default {
console.warn(row) console.warn(row)
var data=JSON.parse(JSON.stringify(row)); var data=JSON.parse(JSON.stringify(row));
data.status=1; data.status=1;
Api.sendtask({ Api.sendtask(data).then(r=>{
id:row.id,
}).then(r=>{
if(r.result){ if(r.result){
this.$Message.info("任务派发成功!"); this.$Message.info("任务派发成功!");
this.search(); this.search();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment