|
|
|
@ -58,6 +58,11 @@ |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
icon="el-icon-time" |
|
|
|
icon="el-icon-time" |
|
|
|
@click="handleScope(row)">权限</el-button> |
|
|
|
@click="handleScope(row)">权限</el-button> |
|
|
|
|
|
|
|
<el-button v-if="permission.wf_design_model_copy" |
|
|
|
|
|
|
|
type="text" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
icon="el-icon-document-copy" |
|
|
|
|
|
|
|
@click="handleCopy(row)">拷贝</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
</el-main> |
|
|
|
</el-main> |
|
|
|
@ -78,7 +83,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { getList, remove, deploy, changeCategory } from "@/api/plugin/workflow/model"; |
|
|
|
import { getList, remove, deploy, changeCategory, getDetail } from "@/api/plugin/workflow/model"; |
|
|
|
import { getList as scopeList, submit as scopeSubmit } from '@/api/plugin/workflow/model-scope' |
|
|
|
import { getList as scopeList, submit as scopeSubmit } from '@/api/plugin/workflow/model-scope' |
|
|
|
import { tree } from '@/api/plugin/workflow/category'; |
|
|
|
import { tree } from '@/api/plugin/workflow/category'; |
|
|
|
|
|
|
|
|
|
|
|
@ -113,7 +118,7 @@ export default { |
|
|
|
dialogType: 'drawer', |
|
|
|
dialogType: 'drawer', |
|
|
|
align: 'center', |
|
|
|
align: 'center', |
|
|
|
searchMenuSpan: 6, |
|
|
|
searchMenuSpan: 6, |
|
|
|
menuWidth: 320, |
|
|
|
menuWidth: 350, |
|
|
|
column: [ |
|
|
|
column: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "模型key", |
|
|
|
label: "模型key", |
|
|
|
@ -196,6 +201,18 @@ export default { |
|
|
|
this.getCategoryList() |
|
|
|
this.getCategoryList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
handleCopy(row) { |
|
|
|
|
|
|
|
getDetail(row.id).then(res => { |
|
|
|
|
|
|
|
const { xml } = res.data.data |
|
|
|
|
|
|
|
this.$Clipboard({ |
|
|
|
|
|
|
|
text: xml |
|
|
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
this.$message.success('拷贝xml成功') |
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
handleChangeCategory() { |
|
|
|
handleChangeCategory() { |
|
|
|
if (this.selectionList.length === 0) { |
|
|
|
if (this.selectionList.length === 0) { |
|
|
|
this.$message.warning("请选择至少一条数据"); |
|
|
|
this.$message.warning("请选择至少一条数据"); |
|
|
|
@ -327,7 +344,7 @@ export default { |
|
|
|
searchChange(params, done) { |
|
|
|
searchChange(params, done) { |
|
|
|
this.query = params; |
|
|
|
this.query = params; |
|
|
|
this.onLoad(this.page, params); |
|
|
|
this.onLoad(this.page, params); |
|
|
|
done() |
|
|
|
if (done && typeof done == 'function') done() |
|
|
|
}, |
|
|
|
}, |
|
|
|
selectionChange(list) { |
|
|
|
selectionChange(list) { |
|
|
|
this.selectionList = list; |
|
|
|
this.selectionList = list; |
|
|
|
|