|
@@ -4,9 +4,21 @@
|
|
|
<div class="header hc-flex">
|
|
|
<div class="name flex-1">{{ typeLable }} - {{ projectInfo.projectName }}</div>
|
|
|
<div class="hc-flex">
|
|
|
- <el-button hc-btn type="success">数据同步</el-button>
|
|
|
- <el-button v-if="isFormSet" hc-btn type="primary" @click="setIsFormSetValue">表单设置</el-button>
|
|
|
- <el-button v-else hc-btn type="primary" @click="setIsFormSetValue">元素设置</el-button>
|
|
|
+ <el-dropdown trigger="click">
|
|
|
+ <el-button hc-btn type="success">
|
|
|
+ <span>数据同步</span>
|
|
|
+ <hc-icon name="arrow-down-s" />
|
|
|
+ </el-button>
|
|
|
+ <template #dropdown>
|
|
|
+ <el-dropdown-menu>
|
|
|
+ <template v-for="item in dataSyncMenu" :key="item.key">
|
|
|
+ <el-dropdown-item @click="dataSyncMenuClick(item)">{{ item.name }}</el-dropdown-item>
|
|
|
+ </template>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
+ <el-button v-if="isFormSet" class="ml-3" hc-btn type="primary" @click="setIsFormSetValue">表单设置</el-button>
|
|
|
+ <el-button v-else class="ml-3" hc-btn type="primary" @click="setIsFormSetValue">元素设置</el-button>
|
|
|
<el-button hc-btn type="danger">节点参数</el-button>
|
|
|
<el-button hc-btn color="#626aef">独立表单库</el-button>
|
|
|
<el-button hc-btn type="warning">归档文件时间</el-button>
|
|
@@ -57,7 +69,7 @@
|
|
|
<el-link type="primary">预览</el-link>
|
|
|
<el-link v-if="row.status === 1" type="warning">隐藏表单</el-link>
|
|
|
<el-link v-if="row.status === 0" type="success">取消隐藏</el-link>
|
|
|
- <el-link type="danger">删除</el-link>
|
|
|
+ <el-link type="danger" @click="delInfoTableRow(row)">删除</el-link>
|
|
|
</template>
|
|
|
</hc-table>
|
|
|
</hc-new-card>
|
|
@@ -75,7 +87,7 @@
|
|
|
<el-link type="warning" :disabled="row.excelId === -1 || isNullES(row.excelId)">调整表单</el-link>
|
|
|
<el-link type="primary">编辑元素公式</el-link>
|
|
|
<el-link type="warning">表单同步</el-link>
|
|
|
- <el-link type="danger">删除表单</el-link>
|
|
|
+ <el-link type="danger" @click="delInfoTableRow1(row)">删除表单</el-link>
|
|
|
</template>
|
|
|
</hc-table>
|
|
|
</hc-new-card>
|
|
@@ -345,6 +357,13 @@ const getInfoTableData = async () => {
|
|
|
infoTableLoading.value = false
|
|
|
}
|
|
|
|
|
|
+//当前项目信息表删除
|
|
|
+const delInfoTableRow = (item) => {
|
|
|
+ delMessage(() => {
|
|
|
+ console.log('删除', item)
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
//表单设置
|
|
|
const isFormSet = ref(true)
|
|
|
const infoTableColumn1 = ref([
|
|
@@ -362,6 +381,22 @@ const setIsFormSetValue = () => {
|
|
|
}
|
|
|
getInfoTableData()
|
|
|
}
|
|
|
+//元素表删除
|
|
|
+const delInfoTableRow1 = (item) => {
|
|
|
+ delMessage(() => {
|
|
|
+ console.log('删除', item)
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+//数据同步按钮菜单
|
|
|
+const dataSyncMenu = [
|
|
|
+ { key: 'jdSync', name: '节点参数同步', load:false },
|
|
|
+ { key: 'dqSync', name: '电签同步', load:false },
|
|
|
+ { key: 'gsSync', name: '公式同步', load:false },
|
|
|
+]
|
|
|
+const dataSyncMenuClick = (item) => {
|
|
|
+ console.log( item)
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|